// src/router/index.js
import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/Home.vue'
import WordCloud from '@/views/WordCloud.vue'
import SnakeGame from '@/views/SnakeGame.vue'
import BookList from '@/views/BookList.vue'
import { compile } from 'vue'

const routes = [
  { path: '/', name: 'Home', component: Home },
  { path: '/wordcloud', name: 'WordCloud', component: WordCloud },
  { path: '/snakegame', name: 'SnakeGame', component: SnakeGame },
  { path: '/booklist', name: 'BookList', component: BookList},
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router
